package world.snowcrystal.datasource;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.commons.lang3.NotImplementedException;
import org.springframework.stereotype.Component;
import world.snowcrystal.model.enums.SearchTypeEnum;

/**
 * 视频数据源
 *
 *  
 */

public abstract  class VideoDataSource implements DataSource<Object> {

    @Override
    public boolean support(String dataType){
        return SearchTypeEnum.VIDEO.getValue().equals(dataType) && isDataSourceAvailable();
    }
    abstract boolean isDataSourceAvailable();

}
